// root/index.ts
import express from 'express';
import config from "./config/index"
const app = express();
const port = 3000;

const BASE_API = config['BASE_API']

app.get('/', (req, res) => {
  res.send('Hello,113');
});

app.get(`${BASE_API}/user`, (req, res) => {
  res.send('user');
});

// this can delete
console.log(`env: ${config.ENV}, base-api:${config.BASE_API}`);

app.listen(port, () => {
  console.log(`访问： http://localhost:3000${BASE_API}/user`);
});
